//
//  QuickaboutDiagnosisofdiseaseSternView.m
//  WE
//
//  Created by 要帅气的生活 on 15/12/3.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "QuickaboutDiagnosisofdiseaseSternView.h"
#import "Size.h"
@implementation QuickaboutDiagnosisofdiseaseSternView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _left = [UIButton buttonWithType:UIButtonTypeSystem];
        [self addSubview:_left];
        
        _right = [UIButton buttonWithType:UIButtonTypeSystem];
        [self addSubview:_right];
        
        _button = [UIButton buttonWithType:UIButtonTypeSystem];
        [self addSubview:_button];
        _button.frame = CGRectMake(self.frame.size.width-70, 0, 60, self.frame.size.height);
        [_button setTitle:@"完成" forState:UIControlStateNormal];
        [_button addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside];
        
        _left.frame = CGRectMake(10, 10, 20, 20);
        [_left setBackgroundImage:[UIImage imageNamed:@"zuo"] forState:UIControlStateNormal];
        [_left addTarget:self action:@selector(lefts) forControlEvents:UIControlEventTouchUpInside];
        
        _right.frame = CGRectMake(70, 10, 20, 20);
        [_right setBackgroundImage:[UIImage imageNamed:@"you"] forState:UIControlStateNormal];
        [_right addTarget:self action:@selector(rights) forControlEvents:UIControlEventTouchUpInside];
    }
    self.backgroundColor = GRAYCOLOR;
    return  self;
}
-(void)rights{
    [self.delegate rights];
}
-(void)btnClick{
    [self.delegate btnClick];
}
-(void)lefts{
    [self.delegate lefts];
}
@end
